# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=netavark
pkgver=1.0.3
pkgrel=0
pkgdesc="Container network stack"
url="https://github.com/containers/netavark"
license="Apache-2.0"
arch="all !s390x !riscv64" # blocked by rust/cargo
makedepends="cargo mandown"
subpackages="$pkgname-doc"
source="https://github.com/containers/netavark/archive/v$pkgver/netavark-$pkgver.tar.gz
	minimize-size.patch
	"

build() {
	make
	make docs
}

check() {
	make unit
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
}

sha512sums="
e378bc82e58ef431e3515d2192803c76c247a74ce7039a206ff6eba539797f0f5b69a4c2682f7539103e15cbd6e1271237566fdca1cf7d9549d1e5bd3e43c2b3  netavark-1.0.3.tar.gz
46ca56406834dbdc0f3de100f1feec3ec08a13360d35f940d55299383056fe901dd156618e270c76cd11d3bedfe7d758f4dff82c793c0d79ef29fdf5162cfae7  minimize-size.patch
"
